<template>
	<view class="pageItem">
		<view class="main">
			<view class="card">
				<view class="iconfont icon">&#xe629;</view>
				<view class="c_title">{{$t('cancel.tip_title')}}</view>
				<view class="c_con">
					<view class="c_c_msg">{{$t('cancel.msg1')}}</view>
					<view class="c_c_msg">{{$t('cancel.msg2')}}</view>
					<view class="c_c_msg">{{$t('cancel.msg3')}}</view>
				</view>
				<view class="tip">
					{{$t('cancel.tip')}}<label class="cc"  @click="$r('/pages/news/newsDetail?ori=xy')">《{{$t('set.user_cc')}}》</label>
				</view>
			</view>
		</view>
		<view class="_footer">
			<view class="btn sub" @click="sure_out">{{$t('cancel.btn')}}</view>
		</view>
	</view>
</template>

<script>
	import {mapMutations} from 'vuex';
	export default {
		data() {
			return {
				
			};
		},
		
		methods:{
			...mapMutations(['logout']),
			lock_user(){
				let url = this.site_url + 'api/auth/member/lock_user_handle';
				this.areq(url).then(res=>{
					
				})
			},
			sure_out(){
				uni.showModal({
					title: this.$t('system.tip'),
					content: this.$t('system.tip27'),
					success:  (res) => {
						if (res.confirm) {
							 this.logout();
							 this.lock_user();
							 setTimeout(()=>{
								 this.$r('/page/public/login','rel'); 
							 },800)
						} else if (res.cancel) {
							//console.log('用户点击取消');
						}
					}
				});

			}
		}
	}
</script>

<style lang="scss">
.pageItem{
	padding-bottom: 22vw;
}
.main{
	width: 100%;
	padding: 4vw 4% 0;
	.card{
		@include card_style();
		display: flex;
		flex-direction: column;
		align-items: center;
		color: $main_color4;
		padding-bottom: 6vw;
		.icon{
			font-size: 10vw;
			color: $main_color;
			margin-top: 4vw;
		}
		.c_title{
			margin-top: 6vw;
			width: 92%;
			font-size: 3.6vw;
			font-weight: bold;
			text-align: center;
			line-height: 5.5vw;
		}
		.c_con{
			margin-top: 5vw;
			padding: 3vw 5vw 4vw;
			background: $main_color2_s;
			border: 1rpx solid $main_color;
			border-radius: 2vw;
			.c_c_msg{
				font-size: 3.2vw;
				line-height: 5.5vw;
				padding-top: 2vw;
			}
		}
		.tip{
			width: 92%;
			margin-top: 4vw;
			text-align: center;
			font-size: 3.2vw;
			.cc{
				color: $main_color;
			}
		}
	}
}
._footer{
	@include page_button();
	position: fixed;
	bottom: 0;
	left: 0;
	padding: 3vw 0 6vw;
	background: $main_bg_color;
}
</style>
